/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.menu.entity;

import com.thinkgem.jeesite.modules.shop.entity.OrderGoods;
import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

import java.util.List;

/**
 * 订单Entity
 * @author dby
 * @version 2020-07-12
 */
public class Order3 extends DataEntity<Order3> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 用户id
	private String orderStatus;		// 订单状态
	private String consignee;		// 收件人
	private String address;		// 收件地址
	private String phone;		// 手机号
	private String moneyPaid;		// 付款总额

	private List<OrderGoods3> orderGoodsList;
	
	public Order3() {
		super();
	}

	public Order3(String id){
		super(id);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=100, message="订单状态长度必须介于 0 和 100 之间")
	public String getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}
	
	@Length(min=1, max=20, message="收件人长度必须介于 1 和 20 之间")
	public String getConsignee() {
		return consignee;
	}

	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}
	
	@Length(min=1, max=100, message="收件地址长度必须介于 1 和 100 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@NotNull(message="手机号不能为空")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String getMoneyPaid() {
		return moneyPaid;
	}

	public void setMoneyPaid(String moneyPaid) {
		this.moneyPaid = moneyPaid;
	}

	public List<OrderGoods3> getOrderGoodsList() {
		return orderGoodsList;
	}

	public void setOrderGoodsList(List<OrderGoods3> orderGoodsList) {
		this.orderGoodsList = orderGoodsList;
	}
	
}